<template>
  <view class="auth_container">
    <view class="form_container">
      <van-cell-group inset>

        <van-cell title="关于我们" @click="show_content"></van-cell>
        <van-cell title="投诉建议" @click="show_content"></van-cell>
        <van-cell title="当前版本" value="1.0"></van-cell>
        <van-cell title="平台公告" @click="show_content"></van-cell>
        <van-cell title="退出登录" @click="to_logout"></van-cell>

      </van-cell-group>

    </view>
    <van-dialog id="van-dialog"/>

    <view class="safeBottom"></view>
    <van-popup
      :show="tools.popShow"
      round
      position="bottom"
      custom-style="height: 50%"
      closeable
      close-on-click-overlay
      @close="tools.popShow = false"
    >
      <view class="popContent">
        <text>{{ tools.popContent }}</text>
      </view>
    </van-popup>


  </view>
</template>

<script>

import Dialog from "../../../../static/vant/dialog/dialog";

var $this;
export default {
  name: "uc_container",
  components: {},
  data() {
    return {
      aboutUs: "",
      platformTips: "",
      tools: {
        popShow: false,
        popContent: "hello word"
      }
    };
  },
  methods: {
    to_logout() {

      Dialog.confirm({
        title: '系统提示',
        message: '确认退出登录吗？',
      })
        .then(() => {
          wx.clearStorage({
            success() {
              wx.redirectTo({
                url: "/pages/merchant/login/main"
              })
            }
          })
        })
        .catch(() => {
          // on cancel
        });


    },
    show_content() {
      this.tools.popShow = true;
    }
  },
  mounted() {
  },
  created() {
    $this = this;
  },
  onLoad() {
    // reload_userinfo($this);
  },
};
</script>

<style>
.theme_color {
  color: #586ba9 !important;
  font-weight: bold;
}
</style>
<style scoped>
@import "index.css";
</style>
